package wqh.dt;

import cn.tpson.sewercover.core.ISewerCoverDataCallBack;
import cn.tpson.sewercover.core.SCAlarm;
import cn.tpson.sewercover.core.TempAlarm;

/**
 * Created by devts on 2016/12/22.
 */
public class DynamicDataCallBack implements ISewerCoverDataCallBack {

    public void recieve4SC(String s, SCAlarm scAlarm) {
        System.out.println("接收到数据，IP: " + s);
        System.out.println("接收到数据，基站ID:" + scAlarm.getBaseStationID());
        System.out.println("接收到数据，标签ID:" + scAlarm.getMarkID());
        System.out.println("接收到数据，基站RSSI值:" + scAlarm.getRssi());
        System.out.println("接收到数据，倾斜角度:" + scAlarm.getSlope());
        System.out.println("接收到数据，是否打开:" + scAlarm.isOpen());
    }

    public void recieve4Temp(String s, TempAlarm tempAlarm) {

    }

    public void heart(String s, SCAlarm scAlarm) {
        System.out.println("心跳，IP: " + s);
        System.out.println("心跳，基站ID:" + scAlarm.getBaseStationID());
        System.out.println("心跳，标签ID:" + scAlarm.getMarkID());
        System.out.println("心跳，基站RSSI值:" + scAlarm.getRssi());
        System.out.println("心跳，倾斜角度:" + scAlarm.getSlope());
        System.out.println("心跳，是否打开:" + scAlarm.isOpen());
    }
}
